<template>
  <breadview v-if="category">
    <breaditem :to="'/'">首页</breaditem>
    <breaditem :to="'/'">{{category[1].name}}</breaditem>
    <breaditem :to="'/'">{{category[0].name}}</breaditem>
    <breaditem :to="'/'">{{name}}</breaditem>
  </breadview>
</template>

<script>
import breaditem from '../bread/breaditem.vue';
import breadview from '../bread/breadview.vue';
export default {
  components:{breaditem,breadview},
  props:{
    category:{
      type:Array,
      default:()=>{}
    },
    name:{
      type:String,
      default:''
    }
  }
}
</script>

<style>

</style>